package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 系统消息对象 sys_msg
 *
 * @author heyue
 * @date 2022-05-18
 */
public class SysMsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 是否已读 */
    @Excel(name = "是否已读")
    private Integer readFlag;

    /** 发消息人ID */
    private Long sendUserId;

    /** 收消息人ID */
    private Long getUserId;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setReadFlag(Integer readFlag)
    {
        this.readFlag = readFlag;
    }

    public Integer getReadFlag()
    {
        return readFlag;
    }
    public void setSendUserId(Long sendUserId)
    {
        this.sendUserId = sendUserId;
    }

    public Long getSendUserId()
    {
        return sendUserId;
    }
    public void setGetUserId(Long getUserId)
    {
        this.getUserId = getUserId;
    }

    public Long getGetUserId()
    {
        return getUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("readFlag", getReadFlag())
            .append("sendUserId", getSendUserId())
            .append("getUserId", getGetUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
